package com.luo.employee_oa.service.impl;

import com.luo.employee_oa.mapper.EmployeeAttendanceMapper;
import com.luo.employee_oa.pojo.EmployeeAttendance;
import com.luo.employee_oa.service.EmployeeAttendanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeAttendanceServiceImpl implements EmployeeAttendanceService {
    private final EmployeeAttendanceMapper employeeAttendanceMapper;

    @Autowired
    public EmployeeAttendanceServiceImpl(EmployeeAttendanceMapper employeeAttendanceMapper) {
        this.employeeAttendanceMapper = employeeAttendanceMapper;
    }

    @Override
    public List<EmployeeAttendance> getEmployeeAttendance() {
        return employeeAttendanceMapper.getEmployeeAttendance();
    }

    @Override
    public int deleteResignedEmployeeAttendance() {
        return employeeAttendanceMapper.deleteResignedEmployeeAttendance();
    }
}
